package com.itheima.health.properties;

import lombok.Data;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Slf4j
@Data
//@Configuration
@Component
@ConfigurationProperties(prefix = "sky.alioss")
public class AliOssProperties {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;




    public AliOssProperties() {
        log.error("AliOssProperties init");
//        this.endpoint = "oss-cn-beijing.aliyuncs.com";
//        this.accessKeyId = "LTAI5tEauAvT44YLUonYHr45";
//        this.accessKeySecret = "hykWdX2DDUtcOYBaq3Yf74jBtMFTn2";
//        this.bucketName = "yuqiu-zeng-heima";
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

}
